<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" data-widget="tree">
        <li class="header">HEADER</li>
            <% var menuData = [{
                index:0,
                icon:"fa-bank",
                tit:"首页",
                path:"/",
                power:1
            },{
                index:1,
                icon:"fa-map",
                tit:"商品管理",
                path:"/pro",
                power:1
            },{
                index:2,
                icon:"fa-safari",
                tit:"用户管理",
                path:"/user",
                power:0
            },{
                index:3,
                icon:"fa-archive",
                tit:"订单管理",
                path:"/order",
                power:0
            },{
                index:4,
                icon:"fa-arrows",
                tit:"banner管理",
                path:"/banner",
                power:1
            },{
                index:5,
                icon:"fa-bicycle",
                tit:"购物车管理",
                path:"/cart",
                power:0
            }] %>
            <!-- Optionally, you can add icons to the links -->

            <% for(var i=0;i<menuData.length;i++){ %>
                <% if(power <= menuData[i].power){ %>
                    <li class="<%= index===menuData[i].index ? 'active' : '' %>">
                        <a href="<%= menuData[i].path %>">
                            <i class="fa <%= menuData[i].icon %>"></i>
                            <span><%= menuData[i].tit %></span>
                        </a>
                    </li>
                <% } %>
            <% } %>

            
        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>